Repository navigation
Keep the agent account test from inheriting the running session's account pin - #15165
Merged
Merged
Conversation
…ount pin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
test/shell.d/agent-account-test.shnow unsetsOMARCHY_AGENT_CLAUDE_HOME,OMARCHY_AGENT_CODEX_HOMEandOMARCHY_AGENT_GROK_HOMEalong withCLAUDE_CONFIG_DIR/CODEX_HOME/GROK_HOME.Why
omarchy-agent-account-execexportsOMARCHY_AGENT_<PROVIDER>_HOMEinto every session it starts. That pin is how a running session keeps its account (f964629), andomarchy-agent-account-homechecks it before it reads the registry. An empty value pins Main.When the suite runs from inside an agent session, which is how agents work on Omarchy, the test inherits
OMARCHY_AGENT_CLAUDE_HOME=. Thenomarchy-agent-account-use claude workfollowed byomarchy-agent-account-home claudeprints the inherited empty pin and not the Work home, sothe active account's home is what launches usefails. From a plain terminal it passes. The code is right and the test wasn't hermetic.Testing
test/shell.d/agent-account-test.shpasses from inside a Claude session (OMARCHY_AGENT_CLAUDE_HOME=set) and from a clean environment.the active account's home is what launches use(the baseline failure on quattro).Human check
Nothing beyond review.
🤖 Generated with Claude Code